package com.data.app.pojo.primary;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "five_map_pga", schema = "base", catalog = "")
public class FiveMapPGAEntity {
    private String id;
    private String order_number;
    private Double pga;
    private String coordinate;

    @Id
    @Column(name = "id", nullable = false, length = 255)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "order_number", nullable = false, length = 255)
    public String getOrderNumber() {
        return order_number;
    }

    public void setOrderNumber(String order_number) {
        this.order_number = order_number;
    }

    @Basic
    @Column(name = "pga", nullable = false, length = 6)
    public Double getPga() {
        return pga;
    }

    public void setPga(Double pga) {
        this.pga = pga;
    }

    @Basic
    @Column(name = "coordinate", nullable = true, length = 32)
    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FiveMapPGAEntity that = (FiveMapPGAEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(order_number, that.order_number) && Objects.equals(pga, that.pga) && Objects.equals(coordinate, that.coordinate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, order_number, pga, coordinate);
    }

}
